﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace UpdateProcess
{
    public class Class1
    {
        public Class1()
        {

        }
        private string id, name, age;

        public string Age
        {
            get { return age; }
            set { age = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public string Id
        {
            get { return id; }
            set { id = value; }
        }

        public static List<Class1> GetData()
        {
            List<Class1> list = new List<Class1>();
            DataTable dt = new DataTable();
            dt.Columns.Add("id");
            dt.Columns.Add("name");
            dt.Columns.Add("age");
            for (int i = 0; i < 10; i++)
            {
                Class1 class1 = new Class1();
                class1.Id = "" + i + 1;
                class1.Name = "" + i + 5;
                class1.Age = "" + i + 8;
                list.Add(class1);
            }
            return list;
        }
    }
}
